<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试kaptcha</title>

    <script src="/webjars/jquery/3.1.1/jquery.min.js"></script>
    <script>
        $(function () {
            // 刷新验证码
            $("#verification").bind("click", function () {
                $(this).hide().attr('src', '/verification?random=' + Math.random()).fadeIn();
            });
        });
    </script>
</head>
<body>
<img id="verification" src="/verification" style="cursor: pointer;" title="看不清？换一张" />
</body>
</html>